<div class="main">
<!--   <div class="main-header">
    <div class="pa-icon-div pull-left fs-14">
      <i class="iconfont icon-shouye fs-14 icon-vertical-top"></i>
      <span class="fs-vertical-middle">工作台>
      <span class="fs-theme-color">{{vm.view.typeName}}列表</span>
      </span>
    </div>
  </div> -->
  <div class="main-content search-info">
    <div class="container-header fs-16">
      <span>{{vm.view.typeName}}列表</span>
    </div>
    <form class="base-info" style="margin-bottom: 30px;">
      <div class="base-info-item">
        <div class="pa-form-control">
          <label>{{vm.view.typeName}}名称：</label>
          <input type="text" class="pa-form-control-input" ng-model="vm.mapParams.name">
        </div>
        <div class="pa-form-control">
          <label>{{vm.view.typeName}}时间：</label>
          <input type="text" class="pa-form-control-input date-picker" data-ng-datepicker
            style="margin-right: 0" ng-model="vm.mapParams.startTime">
          <label class="pa-form-zhi">至</label>
          <input type="text" class="pa-form-control-input date-picker" data-ng-datepicker
            ng-model="vm.mapParams.endTime">
        </div>
        <div class="pa-form-control pa-form-control-btn text-right w-100" style="padding: 10px 0">
          <button class="pa-btn pa-sw-btn" type="button" ng-click="vm.query()">搜索</button>
          <button class="pa-btn pa-sw-btn reset-btn" type="reset" ng-click="vm.reset()">重置</button>
        </div>
      </div>
    </form>
    <pa-table>
      <table class="pa-table">
        <thead>
          <tr>
            <th class="sorting"
              ng-class="{'sorting-desc': vm.mapParams.sortType == 2, 'sorting-asc': vm.mapParams.sortType == 1}"
              ng-click="vm.$toggleOrder('start_time')">
              时间
            </th>
            <th>{{vm.view.typeName}}名称</th>
            <th>{{vm.view.typeName}}地点</th>
            <th ng-hide="vm.view.type == 1">组织部门</th>
            <th>主持人</th>
            <th class="operate-three" ng-if="vm.view.type != 3">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="value in vm.resource.activityList">
            <td>{{value.startTime | date:'yyyy-MM-dd'}}</td>
            <td>{{value.name || '-'}}</td>
            <td>{{value.site || '-'}}</td>
            <td ng-hide="vm.view.type == 1">{{value.organizer || '-'}}</td>
            <td>{{value.speaker || '-'}}</td>
            <!-- <td expand-name="{{vm.view.typeName}}名称" expand-value="value.name">{{value.name}}</td>
            <td expand-name="{{vm.view.typeName}}时间" expand-value="value.startTime">
              {{value.startTime | date:'yyyy-MM-dd'}}
            </td> -->
            <!-- 技术交底 -->
            <td ng-if="vm.view.type == 1">
              <div class="operate-del" ng-click="vm.showPreviewDocs(value, 1)">
                <i class="iconfont icon-jilu3 detail-color fs-12"></i>
                <span>记录表</span>
              </div>
            </td>
            <!-- 教育培训 -->
            <td ng-if="vm.view.type == 2">
              <div class="operate-del" ng-click="vm.showPreviewDocs(value, 2)">
                <i class="iconfont icon-jilu3 detail-color fs-12"></i>
                <span>记录表</span>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
    </pa-table>
  </div>
</div>
<!-- 技术交底记录表 -->
<div class="right-pop-div" ng-show="vm.view.currentShowTableIndex == 1">
  <div class="back-btn" ng-click="vm.view.currentShowTableIndex = -1">返回</div>
  <div class="text-right" style="line-height: 90px; margin-top: -90px;color:#008bdd">
    <i class="fa fa-refresh"></i>
    <span>记录表打印</span>
  </div>
  <table style="width:100%">
    <tbody>
      <tr>
        <td colspan="10" class="text-center border-none">{{vm.view.selectedItem.projectName}}</td>
      </tr>
      <tr>
        <td colspan="7" class="border-none">
          <span>承包单位：</span>
          <div class="header-bottom-line" style="width: 250px;">{{vm.view.selectedItem.contractorUnit}}</div>
        </td>
        <td colspan="3" class="text-right border-none">
          <span>合同号：</span>
          <div class="text-left header-bottom-line">{{vm.view.selectedItem.contractNumber}}</div>
        </td>
      </tr>
      <tr>
        <td colspan="7" class="border-none">
          <span>监理单位：</span>
          <div class="header-bottom-line" style="width: 250px;">{{vm.view.selectedItem.supervisingUnit}}</div>
        </td>
        <td colspan="3" class="text-right border-none">
          <span>编&nbsp;&nbsp;&nbsp;号：</span>
          <div class="text-left header-bottom-line">{{vm.view.selectedItem.code}}</div>
        </td>
      </tr>
      <tr>
        <td colspan="10" class="text-center border-none">安全技术交底记录表</td>
      </tr>
      <tr>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none text-right">表C-14</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">交底工序或工程名称</td>
        <td colspan="3">{{vm.view.selectedItem.name}}</td>
        <td colspan="2" class="text-center">交底时间</td>
        <td colspan="3">{{vm.view.selectedItem.startTime}}</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">参加对象及人数</td>
        <td colspan="3">共{{vm.view.selectedItem.sum}}人</td>
        <td colspan="2" class="text-center">交底人</td>
        <td colspan="3">{{vm.view.selectedItem.speaker}}</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">交底地点</td>
        <td colspan="3">{{vm.view.selectedItem.site}}</td>
        <td colspan="2" class="text-center">记录人</td>
        <td colspan="3">{{vm.view.selectedItem.recorder}}</td>
      </tr>
      <tr>
        <td colspan="10" style="vertical-align: top;">
          <div style="height:180px;position: relative;">
            <p>{{vm.view.selectedItem.content}}</p>
            <div style="position: absolute;">
              <div class="padding" ng-repeat="value in vm.view.selectedItem.files">
                <span>{{value.fileName}}</span>
                <div style="display: inline-block;">
                  <a class="pa-btn file-del-btn" target="_blank"
                    ng-href="{{vm.getDownloadSrc(value.id)}}" download="{{value.fileName}}">下载</a>
                  <a class="pa-sm-btn reset-btn">预览</a>
                </div>
              </div>
            </div>
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="10" style="vertical-align: top;">
          <div style="height:180px;position: relative;">
            接受交底人签名：
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="10" class="border-none">
          <div>注：要求必须交底到每一个现场作业人员，并由双方签字确认，留下相关书面记录。</div>
        </td>
      </tr>
    </tbody>
  </table>
</div>

<!-- 教育培训记录表 -->
<div class="right-pop-div" ng-show="vm.view.currentShowTableIndex == 2">
  <div class="back-btn" ng-click="vm.view.currentShowTableIndex = -1">返回</div>
  <div class="text-right" style="line-height: 90px; margin-top: -90px;color:#008bdd">
    <i class="fa fa-refresh"></i>
    <span>记录表打印</span>
  </div>
  <table style="width:100%">
    <tbody>
      <tr>
        <td colspan="10" class="text-center border-none">{{vm.view.selectedItem.projectName}}</td>
      </tr>
      <tr>
        <td colspan="7" class="border-none">
          <span>承包单位：</span>
          <div class="header-bottom-line" style="width: 250px;">{{vm.view.selectedItem.contractorUnit}}</div>
        </td>
        <td colspan="3" class="text-right border-none">
          <span>合同号：</span>
          <div class="text-left header-bottom-line">{{vm.view.selectedItem.contractNumber}}</div>
        </td>
      </tr>
      <tr>
        <td colspan="7" class="border-none">
          <span>监理单位：</span>
          <div class="header-bottom-line" style="width: 250px;">{{vm.view.selectedItem.supervisingUnit}}</div>
        </td>
        <td colspan="3" class="text-right border-none">
          <span>编&nbsp;&nbsp;&nbsp;号：</span>
          <div class="text-left header-bottom-line">{{vm.view.selectedItem.code}}</div>
        </td>
      </tr>
      <tr>
        <td colspan="10" class="text-center border-none">安全教育培训记录表</td>
      </tr>
      <tr>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none text-right">表C-9</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">组织部门</td>
        <td colspan="3">{{vm.view.selectedItem.organizer}}</td>
        <td colspan="2" class="text-center">主讲人</td>
        <td colspan="3">{{vm.view.selectedItem.speaker}}</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">参加部门（施工队）</td>
        <td colspan="3">{{vm.view.selectedItem.joinDepartment}}</td>
        <td colspan="2" class="text-center">人数</td>
        <td colspan="3">{{vm.view.selectedItem.sum}}</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">教育培训主题</td>
        <td colspan="3">{{vm.view.selectedItem.name}}</td>
        <td colspan="2" class="text-center">学时</td>
        <td colspan="3">{{vm.view.selectedItem.period}}</td>
      </tr>
      <tr>
        <td class="border-bottom-none"></td>
        <td colspan="9" rowspan="5" style="vertical-align: top;">
          <div style="height:180px;position: relative;">
            <p>{{vm.view.selectedItem.content}}</p>
            <div style="position: absolute;bottom:10px">
              <div class="padding" ng-repeat="value in vm.view.selectedItem.files">
                <span>{{value.fileName}}</span>
                <div style="display: inline-block;">
                  <a class="pa-btn file-del-btn" target="_blank"
                    ng-href="{{vm.getDownloadSrc(value.id)}}" download="{{value.fileName}}">下载</a>
                  <!-- <a class="pa-sm-btn reset-btn">预览</a> -->
                </div>
              </div>
            </div>
          </div>
        </td>
      </tr>
      <tr>
        <td class="border-bottom-top-none" style="width:52px">教育</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">培训</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">内容</td>
      </tr>
      <tr>
        <td class="border-top-none"></td>
      </tr>
      <!-- 人员签名-->
      <tr>
        <td class="border-bottom-none"></td>
        <td colspan="9" rowspan="8" style="vertical-align: top;">
          <div style="height:360px;position: relative;">
          </div>
        </td>
      </tr>
      <tr>
        <td class="border-bottom-top-none" style="width:52px">与</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">会</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">人</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">员</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">签</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">名</td>
      </tr>
      <tr>
        <td class="border-top-none"></td>
      </tr>
      <tr>
        <td colspan="5" class="border-none">
          <span>培训日期：</span>
          <div style="display:inline-block;min-width:120px;"></div>
        </td>
        <td colspan="5" class="text-right border-none">
          <span>记录人：</span>
          <div style="display:inline-block;min-width:120px;" class="text-left"></div>
        </td>
      </tr>
    </tbody>
  </table>
</div>
<!-- 会议记录表 -->
<div class="right-pop-div" ng-show="vm.view.currentShowTableIndex ==3">
  <div class="back-btn" ng-click="vm.view.currentShowTableIndex = -1">返回</div>
  <div class="text-right" style="line-height: 90px; margin-top: -90px;color:#008bdd">
    <i class="fa fa-refresh"></i>
    <span>记录表打印</span>
  </div>
  <table style="width:100%">
    <tbody>
      <tr>
        <td colspan="7" class="border-none">
          <span>承包单位：</span>
          <div class="header-bottom-line"></div>
        </td>
        <td colspan="3" class="text-right border-none">
          <span>合同号：</span>
          <div class="text-left header-bottom-line"></div>
        </td>
      </tr>
      <tr>
        <td colspan="7" class="border-none">
          <span>监理单位：</span>
          <div class="header-bottom-line"></div>
        </td>
        <td colspan="3" class="text-right border-none">
          <span>编&nbsp;&nbsp;&nbsp;号：</span>
          <div class="text-left header-bottom-line">{{vm.view.selectedItem.code}}</div>
        </td>
      </tr>
      <tr>
        <td colspan="10" class="text-center border-none">安全会议记录表</td>
      </tr>
      <tr>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none"></td>
        <td class="border-none text-right">表C-6</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">会议名称</td>
        <td colspan="3"></td>
        <td colspan="2" class="text-center">会议时间</td>
        <td colspan="3"></td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">会议地点</td>
        <td colspan="3"></td>
        <td colspan="2" class="text-center">主持人</td>
        <td colspan="3"></td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">组织部门</td>
        <td colspan="3"></td>
        <td colspan="2" class="text-center">记录人</td>
        <td colspan="3"></td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">出席对象</td>
        <td colspan="8"></td>
      </tr>
      <tr>
        <td class="border-bottom-none"></td>
        <td colspan="9" rowspan="8" style="vertical-align: top;">
          <div style="height:180px;position: relative;">
            <p>{{vm.view.selectedItem.content}}</p>
            <div style="position: absolute;bottom:10px">
              <div class="padding" ng-repeat="value in vm.view.selectedItem.files">
                <span>{{value.fileName}}</span>
                <div style="display: inline-block;">
                  <a class="pa-sm-btn" ng-href="{{vm.getDownloadSrc(value.id)}}" download="{{value.fileName}}">下载</a>
                  <a class="pa-sm-btn reset-btn">预览</a>
                </div>
              </div>
            </div>
          </div>
        </td>
      </tr>
      <tr>
        <td class="border-bottom-top-none" style="width:52px">会</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">议</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">主</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">要</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">内</td>
      </tr>
      <tr>
        <td class="border-bottom-top-none">容</td>
      </tr>
      <tr>
        <td class="border-top-none"></td>
      </tr>
    </tbody>
  </table>
</div>
<!-- 会议签到表 -->
<div class="right-pop-div" ng-show="vm.view.currentShowTableIndex ==4">
  <div class="back-btn" ng-click="vm.view.currentShowTableIndex = -1">返回</div>
  <div class="text-right" style="line-height: 90px; margin-top: -90px;color:#008bdd">
    <i class="fa fa-refresh"></i>
    <span>签到表打印</span>
  </div>
  <table style="width:100%">
    <tbody>
      <tr>
        <td colspan="7" class="border-none">
          <span>承包单位：</span>
          <div class="header-bottom-line"></div>
        </td>
        <td colspan="3" class="text-right border-none">
          <span>合同号：</span>
          <div class="text-left header-bottom-line"></div>
        </td>
      </tr>
      <tr>
        <td colspan="7" class="border-none">
          <span>监理单位：</span>
          <div class="header-bottom-line"></div>
        </td>
        <td colspan="3" class="text-right border-none">
          <span>编&nbsp;&nbsp;&nbsp;号：</span>
          <div class="text-left header-bottom-line"></div>
        </td>
      </tr>
      <tr>
        <td colspan="10" class="text-center border-none">安全会议签到表</td>
      </tr>
      <tr>
        <td colspan="10" class="border-none text-right">表C-5</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">会议名称</td>
        <td colspan="4">桥梁结构施工安全</td>
        <td colspan="2" class="text-center">会议时间</td>
        <td colspan="2">2017-02-04</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">会议地点</td>
        <td colspan="4">桥梁三队</td>
        <td colspan="2" class="text-center">主持人</td>
        <td colspan="2">张三</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">组织部门</td>
        <td colspan="4">无锡路桥集团有限公司</td>
        <td colspan="2" class="text-center">实到人数</td>
        <td colspan="2">120</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">序号</td>
        <td colspan="2" class="text-center">姓名</td>
        <td colspan="2" class="text-center">部门（施工队）</td>
        <td colspan="2" class="text-center">职位（岗位）</td>
        <td colspan="2" class="text-center">签到</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">110</td>
        <td colspan="2" class="text-center">张三</td>
        <td colspan="2" class="text-center">桥梁三队</td>
        <td colspan="2" class="text-center">普工</td>
        <td colspan="2" class="text-center">指纹</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">110</td>
        <td colspan="2" class="text-center">张三</td>
        <td colspan="2" class="text-center">桥梁三队</td>
        <td colspan="2" class="text-center">普工</td>
        <td colspan="2" class="text-center">指纹</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">110</td>
        <td colspan="2" class="text-center">张三</td>
        <td colspan="2" class="text-center">桥梁三队</td>
        <td colspan="2" class="text-center">普工</td>
        <td colspan="2" class="text-center">指纹</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">110</td>
        <td colspan="2" class="text-center">张三</td>
        <td colspan="2" class="text-center">桥梁三队</td>
        <td colspan="2" class="text-center">普工</td>
        <td colspan="2" class="text-center">指纹</td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">110</td>
        <td colspan="2" class="text-center">张三</td>
        <td colspan="2" class="text-center">桥梁三队</td>
        <td colspan="2" class="text-center">普工</td>
        <td colspan="2" class="text-center">指纹</td>
      </tr>
    </tbody>
  </table>
</div>
<!-- 教育培训登记表 -->
<div class="right-pop-div" ng-show="vm.view.currentShowTableIndex ==5">
    <div class="back-btn" ng-click="vm.view.currentShowTableIndex = -1">返回</div>
    <div class="text-right" style="line-height: 90px; margin-top: -90px;color:#008bdd">
        <i class="fa fa-refresh"></i>
        <span>登记表打印</span>
    </div>
    <table style="width:100%">
        <tbody>
        <tr>
            <td colspan="5" class="border-none">
                <span>承包单位：</span>
                <div class="header-bottom-line"></div>
            </td>
            <td colspan="5" class="text-right border-none">
                <span>合同号：</span>
                <div class="text-left header-bottom-line"></div>
            </td>
        </tr>
        <tr>
            <td colspan="5" class="border-none">
                <span>监理单位：</span>
                <div class="header-bottom-line"></div>
            </td>
            <td colspan="5" class="text-right border-none">
                <span>编&nbsp;&nbsp;&nbsp;号：</span>
                <div class="text-left header-bottom-line"></div>
            </td>
        </tr>
        <tr>
            <td colspan="10" class="text-center border-none">安全教育培训登记表</td>
        </tr>
        <tr>
            <td colspan="10" class="border-none text-right">表C-8</td>
        </tr>
        <tr>
            <td class="text-center">序号</td>
            <td colspan="2" class="text-center">培训内容</td>
            <td class="text-center">培训时间</td>
            <td class="text-center">培训地点</td>
            <td colspan="2" class="text-center">培训方式</td>
            <td class="text-center">培训人数</td>
            <td class="text-center">主讲人</td>
            <td class="text-center">备注</td>
        </tr>
        <tr>
            <td class="text-center">1</td>
            <td colspan="2" class="text-center">3333</td>
            <td class="text-center">02.13</td>
            <td class="text-center">南京</td>
            <td colspan="2" class="text-center">面对面</td>
            <td class="text-center">50</td>
            <td class="text-center">习大大</td>
            <td class="text-center">么么哒</td>
        </tr>
        </tbody>
    </table>
</div>
<!-- 影像资料 -->
<div class="right-pop-div" ng-show="vm.view.currentShowTableIndex == 6">
  <div class="back-btn" ng-click="vm.view.currentShowTableIndex = -1">返回</div>
  <div class="text-center" style="line-height: 90px; margin-top: -90px;">影像资料</div>
  <div style="width:100%;font-size:0">
    <div class="img-item">
      <img src="#">
    </div>
    <div class="img-item">
      <img src="#">
    </div>
    <div class="img-item">
      <img src="#">
    </div>
    <div class="img-item">
      <img src="#">
    </div>
    <div class="img-item">
      <img src="#">
    </div>
  </div>
</div>
<div class="backdrop" ng-show="vm.view.currentShowTableIndex != -1" ng-click="vm.view.currentShowTableIndex = -1"></div>
